import java.util.Arrays;
import java.util.Scanner;

/**
 * 5. 排列字母
 * https://www.lanqiao.cn/problems/2118/learning/?page=1&first_category_id=1&second_category_id=3&tag_relation=intersection&tags=%E7%9C%81%E8%B5%9B,2022&sort=pass_rate&asc=0
 */
public class Main5 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        String str = "WHERETHEREISAWILLTHEREISAWAY";
        char[] ch = str.toCharArray();
        Arrays.sort(ch);
        System.out.println(new String(ch));
        scan.close();
    }
}
